public class ServerMessage implements ServerSideMessage {
	private Type type;
	private String senderNickname;
	private String payload;
	
	public ServerMessage(Type type, String sender, String payload) {
		this.type = type;
		senderNickname = sender;
		this.payload = payload;
	}
	
	@Override
	public Type getType() {
		return type;
	}

	@Override
	public String getPayload() {
		return payload;
	}

	@Override
	public String getClientNickname() {
		return senderNickname;
	}

}
